package com.bootdo.program.wallpaper.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.bootdo.program.wallpaper.dao.BzDeductionRecordDao;
import com.bootdo.program.wallpaper.domain.BzDeductionRecordDO;



@Service
public class BzDeductionRecordService  {
	@Autowired
	private BzDeductionRecordDao bzDeductionRecordDao;
	

	public BzDeductionRecordDO getByUserId(String userId, Date deTime){
		return bzDeductionRecordDao.getByUserId(userId,deTime);
	}
	

	public List<BzDeductionRecordDO> list(Map<String, Object> map){
		return bzDeductionRecordDao.list(map);
	}
	

	public int count(Map<String, Object> map){
		return bzDeductionRecordDao.count(map);
	}
	
	public int updateDeCount(BzDeductionRecordDO deductionRecordDO){
		return bzDeductionRecordDao.updateDeCount(deductionRecordDO);
	}

}
